[BUILD] Add option to ensure kernel build is non-interactive.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 12 Feb 2008 14:57:36 +0000 (14:57 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 12 Feb 2008 14:57:36 +0000 (14:57 +0000)
This is useful for the non 2.6.18-xen builds where the defconfig at
any particular momement may require additional questions to be
answered.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
buildconfigs/mk.linux-2.6-common

index 35150591b51dc47a8633ac29b2cdd16041735a1d..5b6810c56dd038ecbf296f8ac71330e6f9636fa7 100644 (file)
@@ -14,6 +14,12 @@ else
 __XEN_LINUX_UPDATE =
 endif
 
+ifeq ($(XEN_LINUX_NONINTERACTIVE_CONFIG),y)
+__NONINT_CONFIG = yes $$'\n' |
+else
+__NONINT_CONFIG =
+endif
+
 # Let XEN_TARGET_ARCH override ARCH.
 ifeq ($(XEN_TARGET_ARCH),x86_32)
 LINUX_ARCH     ?= i386
@@ -102,7 +108,7 @@ endif
 ifneq ($(EXTRAVERSION),)
        echo "$(EXTRAVERSION)" >$(LINUX_DIR)/localversion-xen
 endif
-       $(MAKE) -C $(LINUX_SRCDIR) ARCH=$(LINUX_ARCH) oldconfig O=$$(/bin/pwd)/$(LINUX_DIR)
+       $(__NONINT_CONFIG) $(MAKE) -C $(LINUX_SRCDIR) ARCH=$(LINUX_ARCH) oldconfig O=$$(/bin/pwd)/$(LINUX_DIR)
        @set -e ; if [ ! -f $(LINUX_DIR)/Makefile ] ; then \
            echo "***********************************"; \
            echo "oldconfig did not create a Makefile"; \